package com.redxiii.spike.api.message;

import java.util.EnumSet;
import java.util.Set;

/**
 * @author Daniel Filgueiras
 * @since 19/06/2011
 */
public enum ImStatus {
	ONLINE_AVAILABLE,
	ONLINE_AWAY,
	ONLINE_BUSY,
	OFFLINE,
	SUBSCRIBE,
	;
	private static Set<ImStatus> online = EnumSet.of(
			ONLINE_AVAILABLE,
			ONLINE_AWAY,
			ONLINE_BUSY);
	
	public boolean isOnline() {
		return online.contains(this);
	}
}
